import Vue from 'vue';
import Vuex from 'vuex';
import { ITodoState } from './modules/todo';

Vue.use(Vuex);

export interface IRootState {
  todo: ITodoState;
}
// Declare empty store first, dynamically register all modules later.
export default new Vuex.Store<IRootState>({});
